/************************************************************
 * Filename: Precompiled.h
 * Purpose: Precompiled header file for game engine project.
 * Includes DirectX, Windows headers, others that should
 * always be included so that build times are much faster.
 *
 * Author: Jeremy Kings
 * Revision: 3 (16 November 2010)
 *
 * Copyright 2010, Digipen Institute of Technology
 ************************************************************/
#pragma once 

#include "Utility.h"
#include "MessageHandler.h"

#include <windows.h>
#include <mmsystem.h>

// Direct X includes

// Don't include DirectX error API unless it's needed.
#if defined(_DEBUG)
#include <DxErr.h>
#ifndef D3D_DEBUG_INFO
#define D3D_DEBUG_INFO
#endif
#endif

// If Direct3D fails this check, the most common cause is that the current machine's hardware doesn't support hardware vertex processing
#if defined(_DEBUG)
#ifndef DXVerify
#define DXVerify(exp) { HRESULT hr = (exp);\
	if( FAILED(hr) && SignalErrorHandler(#exp, __FILE__, __LINE__, "DX Error %s", DXGetErrorDescription(hr) ) )\
	{ G_DEBUG_BREAK; } }
#endif
#else
#ifndef DXVerify
#define DXVerify(x) (x)
#endif
#endif

#include <d3d9.h>
#include <d3dx9.h>

// Audio includes
#include "fmod.hpp"
